Picture Classification
Function:
ai.feature_image_classify(img_base64s, lables, class_num, flag)Description: add pictures to data set for training
Required parameter:
- img_base64s: a group of pictures after BASE64 conversion. data type: list
- lables: mark number of the current dataset. e.g. the first dataset is set to [0]
- class_num: total number of datasets. e.g. if there are three datasets, set this parameter to 3
- flag: the first picture of the first dataset is set to 0. The last picture of the last dataset is set to 2, and the middle picture is set to 1
- Return:
- True: trained successfully
- False: fail to be trained
- Example
For examples, see Image Recognition Demo.